package cn.zxf.note.user.question;

import cn.zxf.note.common.jpa.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;

/**
 * 用户密保问题
 * <p>
 * Created by zengxf on 2020/5/15.
 */
@Entity
@Table(
        name = "user_question",
        uniqueConstraints = {@UniqueConstraint(name = "uni_user_id", columnNames = {"userId"})}
)
@DynamicInsert
@DynamicUpdate
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UserQuestion extends AbstractEntity {

    private Integer userId;
    private String qa1;     // 密保1：我是谁
    private String qa2;     // 密保2：从哪来
    private String qa3;     // 密保3：到哪去

}
